<template>
  <div>
    <div class="week-title">周末去哪儿</div>
    <ul class="list-wrap">
      <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
        <div class="img-wrap">
          <img :src="item.imgUrl" class="img">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-des">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    return {
    }
  }
}
</script>

<style scoped lang="stylus">
  @import '~styles/mixins.styl';
  .week-title
    line-height: .8rem
    background: #eee
    text-indent: .2rem
  .list-wrap
    background: #eee
    .item
      margin-bottom: .08rem
      background: #fff
      height: 4.04rem
      .img-wrap
        .img
          width: 100%
      .item-info
        padding: 0 .2rem
        .item-title
          line-height: .5rem
          font-size: .16rem
          ellipsis()
        .item-des
          line-height:.35rem
          font-size: .14rem
          color: #ccc
          ellipsis()
</style>
